Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing metadata #11

Merged
merged 5 commits into from
Jul 10, 2024
Merged

Fixing metadata #11

merged 5 commits into from
Jul 10, 2024

Conversation

jbosse
Copy link
Member

@jbosse jbosse commented Jul 10, 2024

No description provided.

test-action:
name: GitHub Actions Test
runs-on: ubuntu-latest
# test-action:
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure how to integration test the action without real endpoints.

name: 'The name of your action here'
description: 'Provide a description here'
author: 'Your name or organization here'
name: 'dependabot-tickets'
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't even notice this file before.

jbosse added 2 commits July 10, 2024 08:34
and return just the data not a circular response object.
@@ -29,15 +29,15 @@ class PlanviewClient {
}

#parseResponse(result) {
if (result.status === 200 && !!result.data.id) {
if (result.status === 201 && !!result.data.id) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this was causing it to return the else condition to the Action runner so it was falling even though the ticket was created.

return {
success: true,
data: result.data
}
} else {
return {
success: false,
result
data: result.data
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think result was causing an error because the Axios response is circular.

@jbosse jbosse merged commit 112879b into main Jul 10, 2024
14 checks passed
@jbosse jbosse deleted the fix-metadata branch July 10, 2024 13:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants